@extends('layouts.adminlayout')

@section('main')
<div class="col-xs-12">
 <div class="box">
        <div class="box-header">
            <h3 class="box-title">Chuyên Mục Bài Viết</h3>                                    
        </div> 
        <div class="box-body table-responsive">
 		@if($results->count())        
        <table  class="table table-bordered table-striped" id="dataTable">
                <thead>
                    <tr role="row">
                        <th>ID</th>
                        <th>Tên Chuyên Mục</th>
                    </tr>
                </thead>
                <tbody>
					@foreach ($results as $results ) 
					 	<tr>	
					 		<td>{{{$results->id}}}</td>
					 		<td>{{{$results->ten_chuyen_muc}}}</td>
					 	</tr>
					@endforeach
				</tbody>
		</table>
				@else
					{{{'Không tồn tại chuyên mục'}}}
				@endif
        </div>

</div>

@stop 
 